<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>支付</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
   <link href="/bao/css/style.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/Weixin/css/index.css?v={:rand(0,100)}" rel="stylesheet" type="text/css">
<script src="__PUBLIC__/js/jquery-2.1.1.min.js"></script>
<script>
$(document).ready(function () { 
  
  location.href='{$curld}/newpay/index2.php?price={$djine}&orderid={$danhao}'; 
  
    $(function(){
		if (typeof WeixinJSBridge == "undefined"){
		    if( document.addEventListener ){
		        document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
		    }else if (document.attachEvent){
		        document.attachEvent('WeixinJSBridgeReady', jsApiCall); 
		        document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
		    }
		} else {
		    jsApiCall();
		}
	});
});

function jsApiCall()	{
		WeixinJSBridge.invoke(
			'getBrandWCPayRequest',
			{$jsApiParameters},
			function(res){
				$("input[name='msgbox']").val(4);
				if(res.err_msg == "get_brand_wcpay_request:ok"){
			        $('.msgbox').show();
			        $('.msgbox .txt').text('充值成功');
				} else {
			        $('.msgbox').show();
			        $('.msgbox .txt').text('取消充值');
				}
			}
		);
}
</script>
</head>
 <body class="main_background">
        <div class="box padding_bottom02">
            <div class="top_02">
                 <img src="/bao/picture/top_bg.png" />
            </div>
            <div class="guang">
                <img id="img" src="/bao/picture/guang.png" />
            </div>
            <script type="text/javascript">
                $(document).ready(function() {
                    var angle = 0;
                    setInterval(function() {
                        angle += 3;
                        $("#img").rotate(angle);
                    },
                    100);
                });
            </script>
            <div class="center">
                <div class="c_b background_white b_r no_pt cb_p">
                    <div style="margin-bottom: 10px;margin-top: 25px;">
                        <div style="width: 100%;height:0px;line-height:20px;padding-top: 5px;padding-bottom: 5px;">
                            <div style="margin-left: 0;margin-right: 5px;">
                                <ul id="marquee" class="marquee" style="font-size: 15px;">
                                    <li>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
<body>
<div style="line-height:60px; text-align:center;">请等待支付......</div>
<include file="Index/meno" />
</body>
</html>